package models

import "gorm.io/gorm"

//接收请求中的参数绑定的结构体
type ParamSignUp struct {
	Username   string `json:"username" binding:"required"`    //用户名
	Password   string `json:"password" binding:"required"`    //密码
	RePassword string `json:"re_password" binding:"required"` //确认密码
}

type ParamLogin struct {
	Username string `json:"username"  binding:"required" example:"rosetest"` //用户名
	Password string `json:"password"  binding:"required" example:"123"`      //密码
}

//数据库表结构
type User struct {
	Username string
	Password string
	Email    string
	Gender   int
	gorm.Model
}
